package com.cleaningcloud.erp.domain;

import java.util.Date;

import com.cleaningcloud.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cleaningcloud.common.core.annotation.Excel;

/**
 * 库存盘点对象 erp_ware_check
 * 
 * @author cleaningcloud
 * @date 2024-10-08
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ErpWareCheck extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long wareCheckId;

    /** 盘点单号 */
    @Excel(name = "盘点单号", sort = 1)
    private String wareCheckOdd;

    /** 盘点仓库ID */
    private Long wareId;

    /** 盘点标题 */
    @Excel(name = "盘点标题", sort = 4)
    private String wareCheckTitle;

    /** 盘点方式(0日常盘点1定期盘点2临时盘点) */
    @Excel(name = "盘点方式", sort = 5, readConverterExp = "0=日常盘点,1=定期盘点,2=临时盘点")
    private Integer wareCheckType;

    /** 盘点时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "盘点时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", sort = 6)
    private Date wareCheckTime;

    // 盘点人
    private Long wareCheckPerson;

    /** 创建人ID */
    private Long createId;

    /** 创建人名称 */
    @Excel(name = "创建人", sort = 7)
    private String createName;

    /** 备注是否关闭 */
    private String flag;

    /** 审批状态(0待审批1已通过2被驳回) */
    @Excel(name = "审批状态(0待审批1已通过2被驳回)", sort = 8, readConverterExp = "0=待审批,1=已通过,2=被驳回")
    private Integer approveStatus;

    /** 审批人ID */
    private Long approveId;

    /** 审批人名称 */
    @Excel(name = "审批人",sort = 9)
    private String approveName;

    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", sort = 10)
    private Date approveTime;

    /** 驳回时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date rejectTime;

    /** 驳回原因 */
    private String rejectReason;

    // 批量导出ids
    private String exportIds;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("wareCheckId", getWareCheckId())
            .append("wareCheckOdd", getWareCheckOdd())
            .append("wareId", getWareId())
            .append("wareCheckTitle", getWareCheckTitle())
            .append("wareCheckType", getWareCheckType())
            .append("wareCheckTime", getWareCheckTime())
            .append("remark", getRemark())
            .append("createId", getCreateId())
            .append("createName", getCreateName())
            .append("createTime", getCreateTime())
            .append("flag", getFlag())
            .append("approveStatus", getApproveStatus())
            .append("approveId", getApproveId())
            .append("approveName", getApproveName())
            .append("approveTime", getApproveTime())
            .append("rejectTime", getRejectTime())
            .append("rejectReason", getRejectReason())
            .toString();
    }
}
